package com.wolf.service.impl;

import com.wolf.pojo.Wl_sys_dictionary;
import com.wolf.repository.Wl_sys_dictionaryMapper;
import com.wolf.service.Wl_sys_dictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Wl_sys_dictionaryServiceImpl implements Wl_sys_dictionaryService {

    @Autowired
    private Wl_sys_dictionaryMapper wl_sys_dictionaryMapper;

    public void setWl_sys_dictionaryMapper(Wl_sys_dictionaryMapper wl_sys_dictionaryMapper) {
        this.wl_sys_dictionaryMapper = wl_sys_dictionaryMapper;
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return wl_sys_dictionaryMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Wl_sys_dictionary record) {
        return wl_sys_dictionaryMapper.insert(record);
    }

    @Override
    public int insertSelective(Wl_sys_dictionary record) {
        return wl_sys_dictionaryMapper.insertSelective(record);
    }

    @Override
    public Wl_sys_dictionary selectByPrimaryKey(String id) {
        return wl_sys_dictionaryMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Wl_sys_dictionary record) {
        return wl_sys_dictionaryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Wl_sys_dictionary record) {
        return 0;
    }

    @Override
    public List<Wl_sys_dictionary> getAll() {
        return wl_sys_dictionaryMapper.getAll();
    }

    @Override
    public List<Wl_sys_dictionary> getSelective(String typename, String name) {
        return wl_sys_dictionaryMapper.getSelective(typename,name);
    }
}
